package com.itheima.fanxing;

public class Demo07 {

    public static void main(String[] args) {
        Inter<Integer> ii=new InterImpl1<>();
        ii.createE(10);
        InterImpl2 ii2 = new InterImpl2();
        ii2.createE("abc");
    }
}
interface  Inter<E>{
    void createE(E e);
}
class InterImpl1<E> implements Inter<E>{
    @Override
    public void createE(E e) {
        System.out.println(e);
    }
}
class  InterImpl2 implements Inter<String>{
    @Override
    public void createE(String s) {
        System.out.println(s.length());
    }
    void sing(){
        System.out.println("aaa");
    }
}